<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\user\controller;
use \cmf\controller\HomeBaseController;
use \think\Db;
/**
 * Description of GameListController
 *
 * @author Administrator
 */
class GameController extends HomeBaseController{
    public function gamelist(){
        $pData = Db::name('game_list')->where('enable_i',1)->paginate(20);
        $data = ['games'=>$pData->items(),'page'=>$pData->render()];
        $this->result($data,0,'','json');
    }
    
    public function gameinfo(){
        
    }
}
